package com.teemo.equipment.domain.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Teemo
 */
@Data
public class BasePageDTO implements Serializable {
    @Schema(description = "页码")
    private Long pageNum = 1L;
    @Schema(description = "每页数量")
    private Long pageSize = 10L;


    public Page pageParam(){
        return new Page<>(pageNum,pageSize);
    }
}
